package com.mtoolkit.socket.server;

import com.mtoolkit.socket.SocketRequest;
import com.mtoolkit.socket.SocketResponse;

/**
 * 服务端事件适配器。
 * 抽象类，事件处理器可继承此类，只处理所关心的事情。
 */
public abstract class NioServerEventAdapter implements NioServerEventListener {

    public NioServerEventAdapter() {
    }

    @Override
    public void onAccept() {
    }

    @Override
    public void onAccepted(SocketRequest request) {
    }
    
    @Override
    public void onReaded(SocketRequest request) {
    }
    
    @Override
    public void onWrite(SocketRequest request, SocketResponse response) {
    }

    @Override
    public void onClosed(SocketRequest request) {
    }

    @Override
    public void onError(Exception exception) {
    }
    
}
